home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Codecs / DrawTextCodec / DrawTextCodec.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-18  |  957 b   |  53 lines  |  [TEXT/KAHL]

  1. /*
  2.  
  3.     Written by:    Mark Krueger
  4.  
  5.     Copyright:    © 1992 by Apple Computer, Inc., all rights reserved.
  6.  
  7. */
  8.  
  9. #define COURIER
  10.  
  11.  
  12. #ifdef    COURIER
  13.  
  14. #define    BASE_LINE    8
  15. #define    FONT_ID        22        
  16. #define    FONT_SIZE    10
  17. #define    FONT_HEIGHT    10
  18. #define    FONT_WIDTH    8
  19. #define    CODEC_NAME    "\pCourier"
  20.  
  21. #else
  22.  
  23.     // Monaco
  24.     
  25. #define    BASE_LINE    7
  26. #define    FONT_ID        4        
  27. #define    FONT_SIZE    12
  28. #define    FONT_HEIGHT    12
  29. #define    FONT_WIDTH    8
  30. #define    CODEC_NAME    "\pMonaco"
  31.  
  32. #endif
  33.  
  34.  
  35. /* This is the structure we use to hold data used by all instances of
  36.    this compressor and decompressor */
  37.  
  38. typedef struct    {                    
  39.     CodecInfo    **info;                    /* our cached codec info structure */
  40.     GWorldPtr    tableWorld;
  41.     char        *table;
  42.     Boolean        skipTable[256];            // not used 
  43. } SharedGlobals;
  44.  
  45.  
  46. /* This is the structure we use to store our global data for each instance */
  47.  
  48. typedef struct    {                        
  49.     SharedGlobals    *sharedGlob;        /* pointer to instance-shared globals */
  50.     long        totalSize;
  51.     ComponentInstance self;
  52. } Globals;
  53.